{extend name="index"/}
{block name="title"}后台管理 - {:sysconf('title')}{/block}
{block name="content"}
<section class="Hui-article-box">
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> <a href="{:url('Index/index')}">首页</a> <span class="c-gray en">&gt;</span> 财务管理 <span class="c-gray en">&gt;</span> 返佣记录<a id="btn-refresh" class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
    <div class="Hui-article">
        <article class="cl pd-20">
            <form action="">
                <div class="text-c">
                    日期范围：
                    <input type="text" onfocus="WdatePicker()" value="{:input('logmin')}" name="logmin" class="input-text Wdate" style="width:120px;">
                    -
                    <input type="text" onfocus="WdatePicker()" value="{:input('logmax')}" name="logmax" class="input-text Wdate" style="width:120px;">
                    <input type="text" value="{:input('keywords')}" name="keywords" class="input-text" style="width:120px;">
                    <button class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
                </div>
            </form>
            <div class="cl pd-5 bg-1 bk-gray mt-20">
                <span class="l">
                    <a href="{:url('Finance/export')}" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe644;</i> 导出Execl</a>
                </span>
            </div>
            <div class="mt-20">
                <table class="table table-border table-bordered table-hover table-bg table-sort">
                    <thead>
                    <tr class="text-c">
                        <th width="100">订单号</th>
                        <th width="60">代理层级</th>
                        <th width="60">购买者</th>
                        <th width="100">商品名称</th>
                        <th width="60">商品价格</th>
                        <th width="40">返佣金额</th>
                        <th width="60">返佣者</th>
                        <!--<th width="60">状态</th>-->
                        <th width="100">添加时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="list" id="val"}
                    <tr class="text-c">
                        <td>{$val['order_no']}</td>
                        <td>{$val['level']}</td>
                        <td>{$val['user_nickname']} - - {$val['true_name']}</td>
                        <td>{$val['goods_title']}</td>
                        <td>{$val['goods_sell_price']}</td>
                        <td>{$val['add_money']}</td>
                        <td>{$val['add_user_nickname']} - - {$val['add_true_name']}</td>
                        <!--<td class="td-status">
                            {switch name="val.status"}
                            {case value="0"}<span class="label label-default radius">待处理</span>{/case}
                            {case value="1"}<span class="label label-success radius">已转账</span>{/case}
                            {case value="2"}<span class="label label-danger radius">转账失败</span>{/case}
                            {/switch}
                        </td>-->
                        <td>{$val['add_time']}</td>
                    </tr>
                    {/volist}
                    <tr class="text-c">
                    	<td colspan="4"><span style="color:red">返佣总额</span></td>
                    	<td colspan="4"><span style="color:red"><b>{$distSum} </b></span> 元</td>
                    </tr>
                    </tbody>
                </table>
                <div class="bjwl_paginate">
                    {$list->render()}
                </div>
            </div>
        </article>
    </div>
</section>
<script type="text/javascript" src="__LIB__/My97DatePicker/4.8/WdatePicker.js"></script>
{/block}